// Required for scrLambdaFunction
function LingoF_InvokeHandler(hnd,inst,listArgs)
{
  var args = new Array(); 
  for (var i = 1; i <= listArgs.count; i++) 
    args.push(listArgs[i]);
  return inst[hnd].apply(inst,args);
}

// Required for scrJsLambdaFunction
function LingoF_InvokeJsFunction(fn,listArgs)
{
  var args = new Array(); 
  for (var i = 1; i <= listArgs.count; i++) 
    args.push(listArgs[i]);
  return fn.apply({},args);
}